<span class="description">All fields are required except optional ones.</span>
<% form_tag :action => 'create_user' do %>
<%= error_messages_for 'user' %>
<table cellpadding="5px" border="0px">
	<tr height="25px">
		<td><strong>Register Info</strong></td>
	</tr>
    <tr height="25px">
        <td width="100px">
            <label for="user_email">
                Email
            </label>
        </td>
    </tr>
    <tr height="25px">
        <td>
            <%= text_field 'user', 'email', {:class => 'text'} %>
        </td>
    </tr>
    <tr height="25px">
        <td width="100px">
            <label for="user_login_name">
                Choose a login name
            </label>
        </td>
    </tr>
    <tr height="25px">
        <td>
            <%= text_field 'user', 'login_name', {:class => 'text'} %>
        </td>
    </tr>
</table>
<hr class="sp"/>
<table cellpadding="5px" border="0px">
    <tr height="25px">
        <td width="100px">
            <label for="user_first_name">
                First Name (Optional)
            </label>
        </td>
    </tr>
    <tr height="25px">
        <td>
            <%= text_field 'user', 'first_name', {:class => 'text'} %>
        </td>
    </tr>
    <tr height="25px">
        <td width="100px">
            <label for="user_last_name">
                Last Name (Optional)
            </label>
        </td>
    </tr>
    <tr height="25px">
        <td>
            <%= text_field 'user', 'last_name', {:class => 'text'} %>
        </td>
    </tr>
</table>
<hr class="sp"/>
<table cellpadding="5px" border="0px">
	<tr height="25px">
        <td>
            <strong>Password Info</strong>
        </td>
    </tr>
    <tr height="25px">
        <td>
            <label for="user_password">
                Choose a password
            </label>
        </td>
    </tr>
    <tr height="25px">
        <td>
            <%= password_field 'user', 'password', {:class => 'text'} %>
        </td>
    </tr>
    <tr height="25px">
        <td width="100px">
            <label for="password_confirmation">
                Repeat password again
            </label>
        </td>
    </tr>
    <tr height="25px">
        <td>
            <%= password_field 'user', 'password_confirmation', {:class => 'text'} %>
        </td>
    </tr>
	<tr height="25px">
        <td>
            <strong>CAPTCHA</strong>
        </td>
    </tr>
	<tr height="25px">
        <td>
            <%= get_captcha() %>
        </td>
    </tr>
	<tr height="50px">
        <td class="buttons">
            <%= submit_tag 'Sign Up', :disable_with => 'Signing Up ...' %>
        </td>
    </tr>
</table>
<% end %>
